Skip to content

Conversation

@netlimpopo
Copy link
Contributor

@netlimpopo netlimpopo commented Jan 7, 2026

Script suggestion for [Ways to improve compatibility with other markdown editors #3225](pbek/QOwnNotes#3225). 
Closes #3225
@pbek
Copy link
Member

pbek commented Jan 7, 2026

Thank you!
What is the content in directory F1 for, and do we need it in the script repository?

Changed Version Number: to 26.1.5.
@netlimpopo
Copy link
Contributor Author

Thank you! What is the content in directory F1 for, and do we need it in the script repository?

I added it for testing purposes only and also for you to have some test files with edgecases. These files can be deleted after the code review.

@netlimpopo
Copy link
Contributor Author

netlimpopo commented Jan 7, 2026

I am also aware, that a pandoc style is slightly different than the github style. I focused on the import of VS Code Markdown as an editor.
I am planning on an export function strictly for Website generation purposes which focuses on the auto identifier (id) for headings. Pandoc strips out more than VS Code. I did not have more time though and thought it is good enough for a Code review.

Mention necesssary conversion step before importing is possible: 

"In Obsidian please use the plugin <a href='https://github.com/mnaoumov/obsidian-better-markdown-links'>Better markdown links</a> to first convert to standard markdown links instead of Wikilinks."
@pbek
Copy link
Member

pbek commented Jan 7, 2026

These files can be deleted after the code review.

Please do so. If you want some documentation, please add that to the Wiki.

…and-others.qml

Fixed a bug, when cutting out Codeblocks as 
`markdown =` was missing and so it never rewrote the content in 
 
`markdown = markdown.replace(/(```[\s\S]*?```|`[^`]*`)/g, function (match) {`

Also uncommented the debugging functions.
@pbek pbek merged commit 0476242 into qownnotes:main Jan 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants